package com.tbm.entity;

import com.tbm.base.entity.BaseEntity;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by Administrator on 2017/9/13.
 */

@Entity(name = "JsonEntity")
@Table(name = "sys_json")
public class JsonEntity extends BaseEntity {

    @Id
    @GeneratedValue
    private Integer jsonId ;

    @NotEmpty
    private String jsonName;

    private String jsonParameter;

    @NotEmpty
    private String jsonPath;

    public Integer getJsonId() {
        return jsonId;
    }

    public void setJsonId(Integer jsonId) {
        this.jsonId = jsonId;
    }

    public String getJsonName() {
        return jsonName;
    }

    public void setJsonName(String jsonName) {
        this.jsonName = jsonName;
    }

    public String getJsonParameter() {
        return jsonParameter;
    }

    public void setJsonParameter(String jsonParameter) {
        this.jsonParameter = jsonParameter;
    }

    public String getJsonPath() {
        return jsonPath;
    }

    public void setJsonPath(String jsonPath) {
        this.jsonPath = jsonPath;
    }

    @Override
    public String toString() {
        return "jsonId";
    }
}
